import 'package:flutter/material.dart';

/**
 * AboutListTile
 * 这个控件的作用好像和AboutDialog差不多,只不过AboutListTile包多了一层在aboutBoxChildren中还是返回AboutDialog的显示
 */

class Show extends StatefulWidget {
  @override
  Sha createState() => new Sha();
}

class Sha extends State<Show> {
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return new Scaffold(
      appBar: new AppBar(
        title: new Text("fsdf"),
        centerTitle: true,
      ),
      drawer: new Drawer(
        child: new AboutListTile(
          child: const Text("dasdffta"),
          icon: const Icon(Icons.speaker),
          aboutBoxChildren: <Widget>[new Text("fsdggd")],
        ),
      ),
    );
  }
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(home: new Show());
  }
}

void main() {
  runApp(new MyApp());
}
